<template>
  <div class="banner">
    <div class="identity">
      <div class="t1">{{ t("升级金卡") }}</div>
      <div class="t2">
        <!-- 此处要获取用户的信息名称 -->
        {{ t("尊敬", { name: "客户" }) }}
      </div>
      <div class="btn" @click="gobuy">{{ t("去下单") }}</div>
    </div>
    <div class="title">{{ t("会员专属特权") }}</div>

    <div class="power">
      <div class="item">
        <img src="../../assets/images/mine/zhuceyouhui.png" alt="" />
        <div class="txt">{{ t("注册优惠") }}</div>
      </div>
      <div class="item">
        <img src="../../assets//images//mine/gift.png" alt="" />
        <div class="txt">{{ t("推荐礼物") }}</div>
      </div>
      <div class="item">
        <img src="../../assets/images/mine/tequan.png" alt="" />
        <div class="txt">{{ t("会员特权") }}</div>
      </div>
    </div>
    <div class="phone">
      <div class="left">
        <div class="t1">{{ t("新会员专属") }}</div>
        <div class="t2">{{ t("首次下单买一送一") }}</div>
        <div class="btn" @click="gobuy">{{ t("去下单") }}</div>
      </div>
      <div class="right">
        <div class="item" v-for="index in 6" :key="index">
          <img src="../../assets//images/mine/phone11.png" alt="" />
          <div class="name">
            <div>精选人气印花</div>
            <div>￥500.00</div>
          </div>
        </div>
      </div>
    </div>
    <div class="fuli">
      <div class="box1">
        <div class="t1">{{ t("专属优惠") }}</div>
        <div class="btn" @click="gobuy">{{ t("去下单") }}</div>
      </div>
      <div class="box2">{{ t("新会员买一送一") }}</div>
      <div class="box3">
        <div style="margin: 48px 0 40px 0">{{ t("7折优惠") }}</div>
        <div>{{ t("成功推荐会员") }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: [],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  updated() {},
  destroyed() {},
  activated() {},
  methods: {
    // 点击去下单
    t(v, opt) {
      if (opt) {
        return this.$t(`会员页面.${v}`, opt);
      }
      return this.$t(`会员页面.${v}`);
    },
    gobuy() {
      this.$router.push("/home");
    },
  },
};
</script>
<style lang="less" scoped>
.banner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1700px;
  margin: 17px 110px;
  .identity {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1200px;
    height: 216px;
    background: linear-gradient(0deg, #bfc3d0 0%, #e3e6ec 100%);
    border-radius: 10px;
    .t1 {
      font-family: Source Han Sans SC;
      font-weight: bold;
      font-size: 30px;
      color: #222222;
      margin-top: 27px;
      height: 29px;
    }
    .t2 {
      font-family: Source Han Sans SC;
      font-weight: 400;
      font-size: 22px;
      color: #222222;
      margin: 29px 0px;
    }
    .btn {
      width: 258px;
      height: 60px;
      text-align: center;
      line-height: 60px;
      background: #222222;
      font-weight: 400;
      font-size: 24px;
      color: #ffffff;
      border-radius: 8px;
    }
  }
  .title {
    text-align: center;
    height: 39px;
    font-family: Source Han Sans SC;
    font-weight: bold;
    font-size: 40px;
    color: #222222;
    line-height: 38px;
    margin-top: 56px;
  }

  .power {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 64px;
    justify-content: space-evenly;
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      img {
        width: 70px;
        height: 70px;
      }
      .txt {
        margin-top: 16px;
        font-weight: 400;
        font-size: 20px;
        color: #222222;
      }
    }
  }
  .phone {
    box-sizing: border-box;
    display: flex;
    margin-top: 100px;
    width: 1700px;
    height: 656px;
    background: #f8f8f8;
    padding: 24px 34px 24px 88px;
    border-radius: 8px;
    .left {
      width: 320px;
      margin-top: 187px;
      display: flex;
      text-align: center;
      flex-direction: column;
      align-items: center;
      margin-right: 80px;
      .t1 {
        width: 100%;
        height: 39px;
        font-family: SourceHanSansSC;
        font-weight: bold;
        font-size: 40px;
        color: #222222;
        line-height: 38px;
      }
      .t2 {
        width: 100%;
        height: 38px;
        font-family: SourceHanSansSC;
        font-weight: bold;
        font-size: 40px;
        color: #222222;
        line-height: 38px;
        margin: 32px 0 72px 0;
      }
      .btn {
        width: 266px;
        height: 62px;
        text-align: center;
        line-height: 62px;
        font-weight: 400;
        font-size: 24px;
        color: #ffffff;
        background: #222222;
        border-radius: 8px;
      }
    }
    .right {
      flex: 1;
      display: flex;
      flex-wrap: wrap;

      .item {
        position: relative;
        width: 254px;
        height: 254px;
        margin-right: 40px;
        margin-bottom: 24px;
        img {
          width: 254px;
          height: 254px;
        }
        .name {
          position: absolute;
          left: 0;
          box-sizing: border-box;
          bottom: -35px;
          width: 254px;
          height: 70px;
          background: #222222;
          padding: 11px 16px;
          border-radius: 0px 0px 6px 6px;
          div {
            font-weight: 400;
            font-size: 20px;
            color: #ffffff;
          }
        }
      }
    }
  }
  .fuli {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 1700px;
    height: 380px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 84px 94px 76px 115px;
    margin-top: 38px;
    .box1 {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-right: 100px;
      margin-left: 10px;
      .t1 {
        width: 163px;
        height: 39px;
        font-family: SourceHanSansSC;
        font-weight: bold;
        font-size: 40px;
        color: #222222;
        line-height: 38px;
        margin-bottom: 34px;
      }
      .btn {
        width: 266px;
        height: 62px;
        background: #222222;
        border-radius: 8px;
        font-weight: 400;
        font-size: 24px;
        color: #ffffff;
        text-align: center;
        line-height: 62px;
      }
    }
    .box2 {
      width: 496px;
      height: 220px;
      text-align: center;
      line-height: 220px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      font-size: 30px;
      color: #ffffff;
      background: url(../../assets/images/mine/vipbgc1.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 90px;
    }
    .box3 {
      width: 496px;
      height: 220px;
      text-align: center;

      font-weight: bold;
      font-size: 30px;
      color: #ffffff;
      background: url(../../assets/images/mine/vipbgc2.png) no-repeat;
      background-size: 100% 100%;
    }
  }
}
</style>
